package com.gengzp.common.model.role.resp;

import com.gengzp.common.model.base.resp.GenericResp;
import com.gengzp.common.model.permission.dto.PermissionDto;
import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.List;

/**
 * @ClassName SearchSysRoleResp
 * @Description 查询系统角色返回实体
 * @Author gengzp
 * @Date 2025/5/17 22:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "查询系统角色返回实体")
public class SearchSysRoleResp extends GenericResp {

    @Serial
    private static final long serialVersionUID = -5358150771295034480L;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    /**
     * 角色描述
     */
    @ApiModelProperty(value = "角色描述")
    private String roleDescription;

    /**
     * 权限集合
     */
    @ApiModelProperty(value = "权限集合", collectionGenericClass = PermissionDto.class)
    private List<PermissionDto> permissions;

}
